Message

data class Message(val id: String, val realId: Int = 0, val read: ReadStatus, val status: DeliveryStatus, val text: String? = "", val type: MessageType, val date: Instant?, val attachments: List<Attachment>? = null)

The message entity.

Constructors

Link copied to clipboard
fun Message(id: String, realId: Int = 0, read: ReadStatus, status: DeliveryStatus, text: String? = "", type: MessageType, date: Instant?, attachments: List<Attachment>? = null)

Functions

Link copied to clipboard

Is it inbox message. True if message type is MessageType.IN or MessageType.RATING_IN

Properties

Link copied to clipboard

List of message attachments.

Link copied to clipboard
val date: Instant?

The date of message creating.

Link copied to clipboard
val id: String

Unique message id in library.

Link copied to clipboard
Link copied to clipboard
val realId: Int = 0

Message id from service.

Link copied to clipboard

Delivery status.

Link copied to clipboard
val text: String?

Message text.

Link copied to clipboard

Message type.